import { Pipe, PipeTransform } from '@angular/core';

@Pipe({ name: 'systemAudit' })

export class SystemAudit implements PipeTransform {
      transform(value): string {
            let status = '';
            switch (value) {
                case 1:
                status = '已通过';
                break;
                case 2:
                status = '未通过';
                break;
                default:
                status = '未知';
            }
            return status;
      }
}

@Pipe({ name: 'manuallyReview' })
export class ManuallyReview implements PipeTransform {
    transform(value): string {
          let status = '';
          switch (value) {
              case 1:
              status = '已通过';
              break;
              case 2:
              status = '已打回';
              break;
              default:
              status = '待审核';
          }
          return status;
    }
}

